CFLAG=-I../../../build/release-install-cpp11/include/
LFLAG=-L../../../build/release-install-cpp11/lib/

all:DictServer DictClient

DictServer:Server.cc
	g++ -o $@ $^ $(CFLAG) $(LFLAG) -lmuduo_net -lmuduo_base -lpthread -std=c++14 
	# 一定要先链接 muduo_net, 再链接 muduo_base
	
DictClient:Client.cc
	g++ -o $@ $^ $(CFLAG) $(LFLAG) -lmuduo_net -lmuduo_base -lpthread -std=c++14 

.PHONY:clean
clean:
	rm -f DictServer DictClient